package com.molichuxing.services.infrastructure.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.InsuranceCommercialBean;

/**
 * <p>
 * 商业险表 Mapper 接口
 * </p>
 *
 * @author xuelin yi
 * @since 2019-08-20
 */
public interface InsuranceCommercialMapper extends RootMapper<InsuranceCommercialBean> {

    /**
     * 根据商业险id获取保险保费信息
     * @param insuranceIds
     * @return
     */
    List<InsuranceCommercialBean> getInsuranceCommercialAmount(@Param("insuranceIds") List<Integer> insuranceIds);

    /**
     * 根据商业险id获取保险保费信息
     * @param insuranceId
     * @return
     */
    List<InsuranceCommercialBean> getInsuranceCommercialList(@Param("insuranceId") Integer insuranceId);

    /**
     * 修改商业险保费信息
     * @param bean
     * @return
     */
    int modifyCommercial(InsuranceCommercialBean bean);


    /**
     * 创建商业险保费信息
     * @param bean
     * @return
     */
    int createCommercial(InsuranceCommercialBean bean);

    /**
     * 批量添加
     * @param dataList
     * @return
     */
    int createBatchCommercial(@Param("list") List<InsuranceCommercialBean> dataList);

	List<InsuranceCommercialBean> getInsuranceCommercials(@Param("insuranceIds") List<Integer> insuranceIds);
}
